using System;

namespace Petshop.Backend.DTO
{
    [Serializable]
    public class OrderInfo
    {
        public OrderInfo()
        {
        }


        public OrderInfo(int orderId, DateTime date, string userId, CreditCardInfo creditCard, AddressInfo billing,
                         AddressInfo shipping, decimal total)
        {
            OrderId = orderId;
            Date = date;
            UserId = userId;
            CreditCard = creditCard;
            BillingAddress = billing;
            ShippingAddress = shipping;
            OrderTotal = total;
        }

        public int OrderId { get; set; }
        public DateTime Date { get; set; }
        public string UserId { get; set; }
        public CreditCardInfo CreditCard { get; set; }
        public AddressInfo BillingAddress { get; set; }
        public AddressInfo ShippingAddress { get; set; }
        public decimal OrderTotal { get; set; }
        public LineItemInfo[] LineItems { get; set; }
    }
}